package org.smartcti.freeswitch.inbound;


import org.smartcti.freeswitch.inbound.internal.InboundConnectionImpl;
import org.smartcti.freeswitch.inbound.response.CommandResponse;

public class DefaultInboundConnection implements InboundConnection {
	
	private final InboundConnectionImpl delegate;
	
	public DefaultInboundConnection(InboundConnectionImpl delegate) {
		super();
		this.delegate = delegate;
	}

	public void addEventListener(InboundEventListener eventListener) {
		delegate.addEventListener(eventListener);

	}

	public String getHostname() {
		return delegate.getHostname();
	}

	public String getPassword() {
		return delegate.getPassword();
	}

	public int getPort() {
		return delegate.getPort();
	}

	public InboundConnectionState getState() {
		return delegate.getState();
	}

	public void login() throws InboundException {
		delegate.login();
	}

	public void logoff() throws InboundException {
		delegate.logoff();
	}

	public void removeEventListener(InboundEventListener eventListener) {
		delegate.removeEventListener(eventListener);
	}

	public CommandResponse sendCommand(String command, Object... objects) throws InboundException {
		return delegate.sendCommand(command, objects);
	}


	public void setSocketReadTimeout(int socketReadTimeout) {
		// TODO Auto-generated method stub
		
	}

	public void setSocketTimeout(int socketTimeout) {
		// TODO Auto-generated method stub
		
	}

	public void setSsl(boolean ssl) {
		// TODO Auto-generated method stub
		
	}

	

}
